package bg.cinema_system.service;

import java.sql.SQLException;
import java.text.ParseException;
import java.util.List;

import bg.cinema_system.DAO.HallDAO;
import bg.cinema_system.DAO.MovieDAO;
import bg.cinema_system.DAO.UserDAO;
import bg.cinema_system.beans.MovieBean;
import bg.cinema_system.pojo.Movie;

public class MovieService {

	public static MovieBean getMovie(int movie_id) throws SQLException {
		return MovieDAO.getMovie(movie_id);
	}

	public static void insertMovie(Movie moviePojo) throws SQLException, ParseException {
		MovieDAO.insertMovie(moviePojo);
	}
	public static List<String> getAllMovieNames() throws SQLException{
		return MovieDAO.getAllMovieNames();
	}
}
